Optimal. Leaf size=170 \[ -\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {(A+B+C) \cos (e+f x) \, _2F_1\left (1,\frac {1}{2}+m;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}-\frac {2 C \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f (3+2 m) \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.29, antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 48, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.104, Rules used = {3116, 3052,
2824, 2746, 70} \begin {gather*} \frac {(A+B+C) \cos (e+f x) (a \sin (e+f x)+a)^m \, _2F_1\left (1,m+\frac {1}{2};m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1)\right )}{f (2 m+1) \sqrt {c-c \sin (e+f x)}}-\frac {2 B \cos (e+f x) (a \sin (e+f x)+a)^m}{f (2 m+1) \sqrt {c-c \sin (e+f x)}}-\frac {2 C \cos (e+f x) (a \sin (e+f x)+a)^{m+1}}{a f (2 m+3) \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 2746
Rule 2824
Rule 3052
Rule 3116
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^m \left (A+B \sin (e+f x)+C \sin ^2(e+f x)\right )}{\sqrt {c-c \sin (e+f x)}} \, dx &=-\frac {2 C \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f (3+2 m) \sqrt {c-c \sin (e+f x)}}+\int \frac {(a+a \sin (e+f x))^m (A+C+B \sin (e+f x))}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}-\frac {2 C \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f (3+2 m) \sqrt {c-c \sin (e+f x)}}+(A+B+C) \int \frac {(a+a \sin (e+f x))^m}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}-\frac {2 C \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f (3+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {((A+B+C) \cos (e+f x)) \int \sec (e+f x) (a+a \sin (e+f x))^{\frac {1}{2}+m} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}-\frac {2 C \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f (3+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {(a (A+B+C) \cos (e+f x)) \text {Subst}\left (\int \frac {(a+x)^{-\frac {1}{2}+m}}{a-x} \, dx,x,a \sin (e+f x)\right )}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {(A+B+C) \cos (e+f x) \, _2F_1\left (1,\frac {1}{2}+m;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}-\frac {2 C \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f (3+2 m) \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 5 in
optimal.
time = 36.63, size = 21299, normalized size = 125.29 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.55, size = 0, normalized size = 0.00 \[\int \frac {\left (a +a \sin \left (f x +e \right )\right )^{m} \left (A +B \sin \left (f x +e \right )+C \left (\sin ^{2}\left (f x +e \right )\right )\right )}{\sqrt {c -c \sin \left (f x +e \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \left (A + B \sin {\left (e + f x \right )} + C \sin ^{2}{\left (e + f x \right )}\right )}{\sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m\,\left (C\,{\sin \left (e+f\,x\right )}^2+B\,\sin \left (e+f\,x\right )+A\right )}{\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________